xend: Fix appending policy module to end of grub's config file
authorKeir Fraser <keir@xensource.com>
Sat, 10 Nov 2007 10:54:32 +0000 (10:54 +0000)
committerKeir Fraser <keir@xensource.com>
Sat, 10 Nov 2007 10:54:32 +0000 (10:54 +0000)
commitb1a8a810f7b17f7a8dd41edef367865e88d2623d
tree0995eaf772ca31faa25cb7fdb7add27611340ab3
parent0ff15a300209b9976629bdb8ceaae07dce1ec849
xend: Fix appending policy module to end of grub's config file

This patch fixes the case where a module line is supposed to be added
to the very end of the file but the file does not end in with a new
line. Also fixes a problem that in some cases the module line would
not be properly be removed.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/util/bootloader.py